import store from '../../store'

/**
 * 选择银行数据
 *
 */ 
export const bankType = [
    '招商银行', 
    '工商银行', 
    '建设银行', 
    '农业银行', 
    '中国银行', 
    '交通银行', 
    '中国邮政储蓄银行', 
    '中信银行', 
    '兴业银行', 
    '光大银行', 
    '华夏银行', 
    '中国民生银行', 
    '广发银行', 
    '上海浦东发展银行', 
    '农村信用合作社', 
    '农村商业银行', 
    '平安银行', 
    '上海银行', 
    '北京银行', 
    '恒丰银行', 
    '渤海银行', 
    '广州银行', 
    '天津银行', 
    '浙商银行', 
    '宁波银行', 
    '温州银行', 
    '南京银行', 
    '常熟农村商业银行', 
    '徽商银行', 
    '重庆银行', 
    '哈尔滨银行'
]

/**
 * 彩票体系数据
 *
 */ 
export const lotSelTitle = {
    bjpk10 : '北京赛车', 
    yfsc : '印尼三分PK拾', 
    cqssc : '重庆时时彩', 
    xjssc : '新疆时时彩',
    yfssc : '分分彩', 
    bfefc : '二分彩', 
    bfwfc : '五分彩',
    xglhc : '六合彩'
}
export const lotSelObj = {
    bjpk10 : 'bjpk10', 
    yfsc : 'bjpk10', 
    cqssc : 'cqssc', 
    xjssc : 'cqssc', 
    yfssc : 'cqssc', 
    bfefc : 'cqssc', 
    bfwfc : 'cqssc',
    xglhc : 'xglhc'
}

// 北京赛车、印尼三分PK拾 
// 冠亚和数字内容
export const GYHCont = [
    [3, 'san', 'gyh', '3'], 
    [4, 'si', 'gyh', '4'], 
    [5, 'wu', 'gyh', '5'], 
    [6, 'liu', 'gyh', '6'], 
    [7, 'qi', 'gyh', '7'], 
    [8, 'ba', 'gyh', '8'], 
    [9, 'jiu', 'gyh', '9'], 
    [10, 'shi', 'gyh', '10'], 
    [11, 'shiy', 'gyh', '11'], 
    [12, 'shie', 'gyh', '12'], 
    [13, 'shis', 'gyh', '13'], 
    [14, 'shisi', 'gyh', '14'], 
    [15, 'shiw', 'gyh', '15'], 
    [16, 'shil', 'gyh', '16'], 
    [17, 'shiq', 'gyh', '17'], 
    [18, 'shib', 'gyh', '18'], 
    [19, 'shij', 'gyh', '19'], 
    ['大', 'gyd', 'gyh_dx', 'da'], 
    ['小', 'gyx', 'gyh_dx', 'xiao'], 
    ['单', 'gydan', 'gyh_ds', 'dan'], 
    ['双', 'gys', 'gyh_ds', 'shuang'], 
    ['大双', 'gyds', 'gyh_dxds', 'dashuang'], 
    ['大单', 'gydd', 'gyh_dxds', 'dadan'], 
    ['小双', 'gyxs', 'gyh_dxds', 'xiaoshuang'], 
    ['小单', 'gyxd', 'gyh_dxds', 'xiaodan']
]
// 冠亚和1至5名玩法
export const d1d5Play = {
    d1m : '冠军', 
    d2m : '亚军', 
    d3m : '第三名', 
    d4m : '第四名', 
    d5m : '第五名'
}
// 冠亚和1至5名内容
export const dxdslhCont = [
    ['大', 'dxds', '_dx', 'da'],
    ['小', 'dxds', '_dx', 'xiao'],
    ['单', 'dxds', '_ds', 'dan'],
    ['双', 'dxds', '_ds', 'shuang'],
    ['龙', 'loongh', '_lh', 'loong'],
    ['虎', 'loongh', '_lh', 'hu']
]
// 冠亚和6至10名玩法
export const d6d10Play = {
    d6m : '第六名', 
    d7m : '第七名', 
    d8m : '第八名', 
    d9m : '第九名', 
    d10m : '第十名'
}
// 北京赛车6-10、重庆时时彩1-5 大小单双内容
export const dxdsCont = [
    ['大', 'dxds', '_dx', 'da'],
    ['小', 'dxds', '_dx', 'xiao'],
    ['单', 'dxds', '_ds', 'dan'],
    ['双', 'dxds', '_ds', 'shuang']
]
// 北京赛车1-5、6-10 1-10号内容
export const c1d10Cont = [
    [1, 'pmyds', '', 1], 
    [2, 'pmyds', '', 2], 
    [3, 'pmyds', '', 3],
    [4, 'pmyds', '', 4], 
    [5, 'pmyds', '', 5],
    [6, 'pmyds', '', 6], 
    [7, 'pmyds', '', 7],
    [8, 'pmyds', '', 8], 
    [9, 'pmyds', '', 9],
    [10, 'pmyds', '', 10]
]

/**
 * 重庆时时彩/分分彩/一分彩/二分彩/五分彩/新疆时时彩
 *
 */ 
 // 两面盘内容
export const lmpCont = [
    ['总大', 'zh', 'zh_dx', 'da'],
    ['总小', 'zh', 'zh_dx', 'xiao'],
    ['总单', 'zh', 'zh_ds', 'dan'],
    ['总双', 'zh', 'zh_ds', 'shuang'],
    ['龙', 'loong', 'lh', 'loong'],
    ['虎', 'hu', 'lh', 'hu'],
    ['和', 'he', 'lh', 'he']
]
// 1至5球玩法
export const c1d5Play = {
    d1q : '第一球', 
    d2q : '第二球', 
    d3q : '第三球', 
    d4q : '第四球', 
    d5q : '第五球'
}
// 1至5球、一字组合、二字定位、三字定位、跨度内容
export const c0d9Cont = [
    [0, '', '', 0], 
    [1, '', '', 1], 
    [2, '', '', 2], 
    [3, '', '', 3],
    [4, '', '', 4], 
    [5, '', '', 5],
    [6, '', '', 6], 
    [7, '', '', 7],
    [8, '', '', 8], 
    [9, '', '', 9]
]
// 前中后玩法
export const qzhPlay = {q3 : '前三', z3 : '中三', h3 : '后三'}
// 前中后内容
export const qzhCont = [
    ['豹子', 'bz', '', 'bz'],
    ['顺子', 'sz', '', 'sz'],
    ['对子', 'dz', '', 'dz'],
    ['半顺', 'bs', '', 'bs'],
    ['杂六', 'zl', '', 'zl']
]
// 一字组合玩法
export const yzzhPlay = {q3 : '前三', z3 : '中三', h3 : '后三', q5 : '全五'}
// 二字组合内容
export const ezzhCont =()=> {
    let arr0 = []
    for(let i=0; i<10; i++){
        for(let n=0; n<10; n++){
            if(n>=i){
                let odds = ''
                let text = String(i) + String(n)
                let cont = String(i) + ',' + String(n)
                if(i == n){
                    odds = 'dz'
                } else {
                    odds = 'qy'
                }
                let arr1 = [text, odds, '', cont]
                arr0.push(arr1)
            }
        }
    }
    return arr0
}
// 三字组合内容
export const szzhCont =()=> {
    let arr0 = []
    for(let i=0; i<10; i++){
        for(let n=0; n<10; n++){
            for(let x=0; x<10; x++){
                if(n>=i && x>=n){
                    let odds = ''
                    let text = String(i) + String(n) + String(x)
                    let cont = String(i) + ',' + String(n) + ',' + String(x)
                    if(i == n && n == x){
                        odds = 'sth'
                    }else if(i == n || n == x){
                        odds = 'dz'
                    }else{
                        odds = 'qy'
                    }
                    let arr1 = [text, odds, '', cont]
                    arr0.push(arr1)
                }
            }
        }
    }
    return arr0
}
// 二字定位玩法
export const ezdwPlay = {
    w : '万位', 
    q : '千位', 
    b : '百位', 
    g : '十位', 
    s : '个位'
}
// 三字定位玩法
export const szdwPlay = {
    q3 : {
        w : '万位', 
        q : '千位', 
        b : '百位'
    }, 
    z3 : { 
        q : '千位', 
        b : '百位', 
        s : '十位'
    }, 
    h3 : { 
        b : '百位', 
        s : '十位', 
        g : '个位'
    }
}
// 组选三内容
export const zx3Cont =()=> {
    let arr0 = []
    for(let i=0; i<10; i++){
        for(let n=0; n<10; n++){
            if(n>i){
                let text = String(i) + String(n)
                let cont = String(i) + ',' + String(n)
                let arr1 = [text, 'zxs', '', cont]
                arr0.push(arr1)
            }
        }
    }
    return arr0
}
// 组选六内容
export const zx6Cont =()=> {
    let arr0 = []
    for(let i=0; i<10; i++){
        for(let n=0; n<10; n++){
            for(let x=0; x<10; x++){
                if(n>i && x>n){
                    let text = String(i) + String(n) + String(x)
                    let cont = String(i) + ',' + String(n) + ',' + String(x)
                    let arr1 = [text, 'zxl', '', cont]
                    arr0.push(arr1)
                }
            }
        }
    }
    return arr0
}
// 和数玩法
export const hsPlay = {
    wq_hs : '万千和数 OOXXX',
    wb_hs : '万百和数 OXOXX',
    ws_hs : '万十和数 OXXOX',
    wg_hs : '万个和数 OXXXO',
    qb_hs : '千百和数 XOOXX',
    qs_hs : '千十和数 XOXOX',
    qg_hs : '千个和数 XOXXO',
    bs_hs : '百十和数 XXOOX',
    bg_hs : '百个和数 XXOXO',
    sg_hs : '十个和数 XXXOO',
}
// 和数内容
export const hsCont = [
    ['单', 'hs', '', 'dan'],
    ['双', 'hs', '', 'shuang']
]

/**
 * 香港六合彩/
 *
 */
// 从1至49内容
export const c1z49Cont =()=> {
    const R = [1,2,7,8,12,13,18,19,23,24,29,30,34,35,40,45,46]
    const B = [3,4,9,10,14,15,20,25,26,31,36,37,41,42,47,48]
    const G = [5,6,11,16,17,21,22,27,28,32,33,38,39,43,44,49]
    let data = {}
    for(let i=1; i<50; i++){
        let color = ''
        if(R.indexOf(i) > -1){
            color = 'R'
        }else if(B.indexOf(i) > -1){
            color = 'B'
        }else if(G.indexOf(i) > -1){
            color = 'G'
        }
        i < 10 && (i = "0" + i)
        data['1' + i] = color
    }
    return data
}
// 特码内容
export const hwbCont = [
    ['大', 'dxds', '_dx', 'da'],
    ['小', 'dxds', '_dx', 'xiao'],
    ['单', 'dxds', '_ds', 'dan'],
    ['双', 'dxds', '_ds', 'shuang'],
    ['合单', 'hds', '_hds', 'hedan'],
    ['合双', 'hds', '_hds', 'heshuang'],
    ['尾大', 'wdx', '_wdx', 'weida'],
    ['尾小', 'wdx', '_wdx', 'weixiao'],
    ['红波', 'hb', '_bs', 'R'],
    ['蓝波', 'lanb', '_bs', 'B'],
    ['绿波', 'lb', '_bs', 'G']
]
// 正码 总大小单双内容
export const zdxdsCont = [
    ['总大', 'zdxds', '_zdx', 'zda'],
    ['总小', 'zdxds', '_zdx', 'zxiao'],
    ['总单', 'zdxds', '_zds', 'zdan'],
    ['总双', 'zdxds', '_zds', 'zshuang']
]
// 正特码玩法
export const ztmPlay = [
    ['ztm_zt1', '正特1'],
    ['ztm_zt2', '正特2'],
    ['ztm_zt3', '正特3'],
    ['ztm_zt4', '正特4'],
    ['ztm_zt5', '正特5'],
    ['ztm_zt6', '正特6']
]
// 连码
// 过关
// 特肖
export const sxCont =()=> {
    const sxObj = {
        '鼠' : 'shu', 
        '牛' : 'niu', 
        '虎' : 'hu', 
        '兔' : 'tu', 
        '龙' : 'long', 
        '蛇' : 'she', 
        '马' : 'ma', 
        '羊' : 'yang', 
        '猴' : 'hou', 
        '鸡' : 'ji', 
        '狗' : 'gou', 
        '猪' : 'zhu'
    }
    // 判断当前年份生肖
    const now = new Date()
    const year = now.getFullYear()
    const ss = (year-2008) % 12 // 设定2008为初始年份
    const sx = new Array("鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪")
    // 处理生肖数据
    const { sxNumber } = store.state
    let sum = []
    let num = 0
    for(let i in sxObj){
        let odds = '' 
        if(i == sx[ss]){
            odds = 'gou'
        }else{
            odds = 'other'
        }
        let arr = [i, odds, '', sxObj[i], sxNumber[num]]
        sum.push(arr)
        num ++
    }
    return sum
}
// 特码头内容
export const tmtCont = [
    ['0头', 'ling', '', '0tou'],
    ['1头', 'yds', '', '1tou'],
    ['2头', 'yds', '', '2tou'],
    ['3头', 'yds', '', '3tou'],
    ['4头', 'yds', '', '4tou']
]
// 特码尾内容
export const tmwCont = [
    ['0尾', 'ling', '', '0wei'],
    ['1尾', 'ydjw', '', '1wei'],
    ['2尾', 'ydjw', '', '2wei'],
    ['3尾', 'ydjw', '', '3wei'],
    ['4尾', 'ydjw', '', '4wei'],
    ['5尾', 'ydjw', '', '5wei'],
    ['6尾', 'ydjw', '', '6wei'],
    ['7尾', 'ydjw', '', '7wei'],
    ['8尾', 'ydjw', '', '8wei'],
    ['9尾', 'ydjw', '', '9wei']
]
// 五行
export const wxCont = [
    ['金', 'jmsh', '', 'jin', ['01', '06', 11, 16, 21, 26, 31, 36, 41, 46]],
    ['木', 'jmsh', '', 'mu', ['02', '07', 12, 17, 22, 27, 32, 37, 42, 47]],
    ['水', 'jmsh', '', 'shui', ['03', '08', 13, 18, 23, 28, 33, 38, 43, 48]],
    ['火', 'jmsh', '', 'huo', ['04', '09', 14, 19, 24, 29, 34, 39, 44, 49]],
    ['土', 'tu', '', 'tu', ['05', 10, 15, 20, 25, 30, 35, 40, 45]]
]
// 半波
export const bbCont = [
    ['红单', 'hd', '', 'Rdan'],
    ['红双', 'hs', '', 'Rshuang'],
    ['红大', 'hda', '', 'Rda'],
    ['红小', 'hx', '', 'Rxiao'],
    ['蓝单', 'ld', '', 'Bdan'],
    ['蓝双', 'ls', '', 'Bshuang'],
    ['蓝大', 'lda', '', 'Bda'],
    ['蓝小', 'lx', '', 'Bxiao'],
    ['绿单', 'lvd', '', 'Gdan'],
    ['绿双', 'lvs', '', 'Gshuang'],
    ['绿大', 'lvda', '', 'Gda'],
    ['绿小', 'lvx', '', 'Gxiao']
]
// 七码玩法
export const qmPlay = {
    qmdanCont : '七码单', 
    qmsCont : '七码双', 
    qmdaCont : '七码大', 
    qmxCont : '七码小'
}
export const qmdanCont = [
    ['单0', 'dan0', '', 'dan0'],
    ['单1', 'dan1', '', 'dan1'],
    ['单2', 'dan2', '', 'dan2'],
    ['单3', 'dan3', '', 'dan3'],
    ['单4', 'dan4', '', 'dan4'],
    ['单5', 'dan5', '', 'dan5'],
    ['单6', 'dan6', '', 'dan6'],
    ['单7', 'dan7', '', 'dan7']
]
export const qmsCont = [
    ['双0', 'shuang0', '', 'shuang0'],
    ['双1', 'shuang1', '', 'shuang1'],
    ['双2', 'shuang2', '', 'shuang2'],
    ['双3', 'shuang3', '', 'shuang3'],
    ['双4', 'shuang4', '', 'shuang4'],
    ['双5', 'shuang5', '', 'shuang5'],
    ['双6', 'shuang6', '', 'shuang6'],
    ['双7', 'shuang7', '', 'shuang7']
]
export const qmdaCont = [
    ['大0', 'da0', '', 'da0'],
    ['大1', 'da1', '', 'da1'],
    ['大2', 'da2', '', 'da2'],
    ['大3', 'da3', '', 'da3'],
    ['大4', 'da4', '', 'da4'],
    ['大5', 'da5', '', 'da5'],
    ['大6', 'da6', '', 'da6'],
    ['大7', 'da7', '', 'da7']
]
export const qmxCont = [
    ['小0', 'xiao0', '', 'xiao0'],
    ['小1', 'xiao1', '', 'xiao1'],
    ['小2', 'xiao2', '', 'xiao2'],
    ['小3', 'xiao3', '', 'xiao3'],
    ['小4', 'xiao4', '', 'xiao4'],
    ['小5', 'xiao5', '', 'xiao5'],
    ['小6', 'xiao6', '', 'xiao6'],
    ['小7', 'xiao7', '', 'xiao7']
]
// 六肖
// 一肖尾数玩法
export const yxwsPlay = [
    ['yxws_yx', '一肖'],
    ['yxws_yxbz', '一肖不中'],
    ['yxws_ws', '尾数'],
    ['yxws_wsbz', '尾数不中']
]
// 生肖连
// 尾数连
// 不中
// 多选中一
// 特中平